import http from "./http.js";

export const getManagerList = (data) => {
    let result = http.get(`/manager?user=${data.user}&page=${data.page}&size=${data.size}`);
    return result;
}

export const addManager = (data) => {
    let result = http.post(`/manager/add`, data);
    return result;
}

export const updateManager = (data) => {
    let result = http.post(`/manager/update`, data);
    return result;
}

export const deleteManager = (data) => {
    let result = http.post(`/manager/del`, data);
    return result;
}
